package com.example.cunion.service;

import com.example.cunion.entity.Coupon;
import com.example.cunion.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【coupon(优惠券表)】的数据库操作Service
* @createDate 2023-10-22 23:18:44
*/
public interface CouponService extends IService<Coupon> {

    List<HashMap> searchUnCheckCouponByPage(HashMap map);

    Integer agreeCoupon(String id, String shopId);

    Integer rejectCoupon(String id);

    Integer addCoupon(HashMap map);

    List<HashMap> searchBusinessCheckByPage(HashMap map);

    Integer updateCouponStatus(HashMap map);


    //使用mp完成增删改查
    Integer addCoupon(Coupon coupon);
    Integer deletedCoupon(String couponId);
    Integer updateCoupon(Coupon coupon);
    List<Coupon> searchCoupon(Integer start, Integer length);

}
